<?php
/**
 * 用户肤质管理v2.3 微信H5 页面接口
 *
 * Author: Zeon
 * Date: 2018/3/23
 * Created by Panxsoft.
 */

use Illuminate\Support\Facades\Route;

/** 微信端 */
Route::group(['middleware' => 'WechatAuth'], function () {

    /**
     * 肤质检测数据的展示
     *
     * @see \App\Http\Controllers\Wechat\V2_3\SkinRecordController
     */
    Route::resource('/v2-3/skin-record', 'V2_3\SkinRecordController')
        ->names(\App\Http\Controllers\Wechat\V2_3\SkinRecordController::ROUTES);

    /**
     * 肤质检测数据的展示(详情)
     *
     * @see \App\Http\Controllers\Wechat\V2_3\SkinRecordController::skinRecordList
     */
    Route::get('/v2-3/skin-record-list', 'V2_3\SkinRecordController@skinRecordList')
        ->name(\App\Http\Controllers\Wechat\V2_3\SkinRecordController::ROUTES['list']);

});

/**
 * 收藏
 *
 * @see \App\Http\Controllers\Wechat\V2_3\FavorController
 */
Route::resource('/v2-3/user-favors', 'V2_3\FavorController')
    ->names(\App\Http\Controllers\Wechat\V2_3\FavorController::ROUTES);

/**
 * 批量删除收藏
 *
 * @see \App\Http\Controllers\Wechat\V2_3\FavorController::batchDelete()
 */
Route::post('/v2-3/user-favors-delete', 'V2_3\FavorController@batchDelete');


/**
 * 店铺列表
 *
 * @see \App\Http\Controllers\Wechat\V2_3\FavorController::storeList()
 */
Route::get('/v2-3/store-list', 'V2_3\FavorController@storeList');



